from django.db import models

class camera(models.Model):
    ip = models.GenericIPAddressField(unique=True)
    user = models.CharField(max_length=100)
    password = models.CharField(max_length=100)
    delay = models.SmallIntegerField()
    notes = models.TextField(blank=True)
    rtsp = models.CharField(max_length=100)

    class Meta:
        db_table = "db_camera"